/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarsDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarInterface {

    ArrayList<CarsDTO> readByAll();

    CarsDTO findByid(int id);

    ArrayList<CarsDTO> findByName(String name);

    ArrayList<CarsDTO> findByModeId(int modeId);

    ArrayList<CarsDTO> findByTypeId(int typeId);

    ArrayList<CarsDTO> findByAirConditional(byte airConditional);

    ArrayList<CarsDTO> findByQuanTity(int qTy);

    ArrayList<CarsDTO> findByPrice(float price);

    ArrayList<CarsDTO> findBySeatQty(int seatQty);

    ArrayList<CarsDTO> readByTopCar(int top);

    ArrayList<CarsDTO> findByDTO(CarsDTO dto);

    ArrayList<CarsDTO> readByOtherCarId(int id);

    int create(CarsDTO dto);

    boolean update(CarsDTO dto);

    boolean delete(int id);

    boolean delete(CarsDTO dto);
}
